/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package it.polimi.registration.gui.security;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.primefaces.model.DefaultScheduleEvent;


/**
 *
 * @author Stefano
 */
public class EventView extends DefaultScheduleEvent {
    private String location;
    private Boolean visibility;
    private Boolean outdoor;
    private String invited;
    private String weather="";
    private Boolean editable = false;
    private List<String> participantsList;
    private Boolean existingEvent = false;    
    private Date startHour;
    private Date endHour;
    

    
    public EventView(String title, Date start, Date end, String location, Boolean visibility, Boolean outdoor) {
        super(title, start, end);
        this.location=location;
        this.visibility=visibility;
        this.outdoor=outdoor;
        this.participantsList = new ArrayList();        
    }
    
    public EventView(){
    }
    
    public String getLocation(){
        return location;
    }
    
    public void setLocation(String location){
        this.location=location;
    }
    
    public Boolean getVisibility(){
        return visibility;
    }
    
    public void setVisibility(Boolean visibility){
        this.visibility=visibility;
    }
    
    public Boolean getOutdoor(){
        return outdoor;
    }
    
    public void setOutdoor(Boolean outdoor){
        this.outdoor=outdoor;
    }
    
    public String getInvited(){
        return invited;
    }
    
    public void setInvited(String invited){
        this.invited=invited;
    }
    
    public String getWeather(){
        if(weather==""){
            return "Not Available";
        }
        else return weather;        
    }
    
    public void setWeather(String weather){
        this.weather=weather;
    }
    
    public Boolean getEditable(){
        return editable;
    }
    
    public void setEditable(Boolean editable){
        this.editable=editable;
    }
    
    public List<String> getParticipantsList() {
        return participantsList; 
    }
    
    public void setParticipantsList(String mail){
        this.participantsList.add(mail);
    }
    
    public Boolean getExistingEvent(){
        return existingEvent;
    }
    
    public void setExistingEvent(Boolean existingEvent){
        this.existingEvent=existingEvent;
    }
    
    public Date getStartHour(){
        return startHour;
    }
    
    public void setStartHour(Date startHour){
        this.startHour=startHour;
    }
    
    public Date getEndHour(){
        return endHour;
    }
    
    public void setEndHour(Date endHour){
        this.endHour=endHour;
    }
    
}
